﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace HPIT_Library
{
    public partial class user : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                GridView1.DataSource = HPIT_Library_BLL.userManger.Select();
                GridView1.DataBind();
            }
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            var MemberName = txt_Name.Text;
            var MemberPhone =txt_Phone.Text;
            //GridView1.DataSource = HPIT_Library_BLL.userManger.Select(MemberName, MemberPhone);
            //GridView1.DataBind();
            GridView1.DataSource = HPIT_Library_BLL.userManger.SelectProc(MemberName, MemberPhone);
            GridView1.DataBind();
        }
    }
}